import request from '@/utils/request'

export function productManageAdd(data) {
  return request({ // 新增资源
    url: '/booking_admin/product_manage/add',
    method: 'post',
    data: data
  })
}

export function getBusinessInfo() {
  return request({ // 获取资源信息
    url: '/booking_admin/product_manage/info',
    method: 'get',
    params: {}
  })
}

export function productManageList(data) {
  return request({ // 获取资源列表
    url: '/booking_admin/product_manage/list',
    method: 'post',
    data: data
  })
}

export function setProductSku(data) {
  return request({ // 修改资源库存价格
    url: '/booking_admin/product_manage/set_product_sku',
    method: 'post',
    data: data
  })
}

export function productManageUpdate(data) {
  return request({ // 更新资源信息
    url: '/booking_admin/product_manage/update',
    method: 'post',
    data: data
  })
}
